﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 飞机大战.Properties;

namespace 飞机大战
{
    class HeroBoom : Boom
    {
        /// <summary>
        /// 导入图片
        /// </summary>
        private Image[] imgs = { Resources.hero_blowup_n1, Resources.hero_blowup_n2, Resources.hero_blowup_n3, Resources.hero_blowup_n4 };

        public HeroBoom(int x, int y) : base(x, y)
        {

        }

        public override void Draw(Graphics g)
        {
            for (int i = 0; i < imgs.Length; i++)
            {
                g.DrawImage(imgs[i], this.X, this.Y);
            }

            //绘制完成后移除
            SingleObject.GetSingle().RemoveGameObject(this);
        }
    }
}
